<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
function validateForm()
{
var x=document.forms["myForm"]["empusername"].value;
if (x==null || x=="")
  {
  alert("UserName can't be NULL!!");
  return false;
  }
var y=document.forms["myForm"]["emppassword"].value;
if (y==null || y=="")
  {
  alert("Password can't be NULL!!");
  return false;
  } 
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login Page</title>
</head>
<body>
<%@ include file="/menu.jsp"%>
<div id="content"style="background-color: green; height: 500px; float: center">
		
<h1 align="center">Welcome To Java Online Classes</h1>
<h2>LOGIN to Learn Java in 30 Days</h2>
<form action="login" method="post" name="myForm" onsubmit="return validateForm()">
<fieldset>
<legend>Login Here</legend>
Employee UserName&nbsp;&nbsp;&nbsp;<input type="text" name="empusername"><br/>
Employee Password&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="emppassword"><br/>
<p>Not a member<a href="register.jsp" style="text-decoration: none"> Register here </a> for Free!!.</p>
</fieldset>
<input type="submit" value="Login">
<input type="reset" >
</form>
</div>
</body>
</html>